package cn.wolfcode.service;


import cn.wolfcode.domain.Permission;
import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IRoleService {

    Role getOne(Long id);

    PageInfo<Role> getPageInfo(QueryObject qo);

    void deleteRoleByOne(Long id);

    void deleteRoleAndPermission(Long id);

    void insert(Role role);

    void update(Role role);

    void insertPermission(@Param("roleId") Long roleId, @Param("permissionId") Long permissionId);

    List<Permission> selectPermission(Long id);

    List<Role> getAll();



}
